home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / system / omswitch.zip / SWITCH.MAN < prev    next >
Text File  |  1988-10-09  |  2KB  |  40 lines

  1. switch                MS-DOS programmers manual        switch
  2.  
  3.     switch [switchar]
  4.  
  5.     Displays or changes the current switch character.  Normally, the switch
  6.     character can only be changed by changing the SWITCHAR parameter in
  7.     the file config.sys file.
  8.     On DOS 2.* changing the switchar from the default of '/' to '-' causes
  9.     the command.com to start using the only correct directory separator of
  10.     '/' in place of the idiotic '\'.
  11.  
  12.     Usage:
  13.         switch
  14.             to display the current setting of the switchar
  15.         switch -
  16.             to set the switch character to '-' (the only
  17.             proper setting :-)
  18.  
  19.     Problems:
  20.       On DOS 3.0 and higher the command.com has been "fixed" to not to react
  21.     to this change.  Please protest as loud as possible.
  22.       Still on DOS 3.0 and higher setting the switchar to anything else
  23.     than '/' causes a incompatibility between command.com and the actual
  24.     DOS.  This comes up when command.com refuses to understand any direct
  25.     path specification any longer.
  26.       Setting the switch character to any character of "switch" makes it
  27.     impossible to change it back since command.com breaks the command line
  28.     off at that point and starts looking for some other command than
  29.     switch.  Eg. issue command "switch w";  after this every time you try
  30.     to issue a switch command, command.com will parse it as command "s"
  31.     with options "itch"... you scratch it, is not my problem.
  32.  
  33.     Solutions:
  34.       The routine formatch() (which is used for wildcard matching) reacts
  35.     to changes of the switchar, BUT also looks at the environment variable
  36.     SWITCHAR.  If it is set, the first character of it's value is used in
  37.     preference to the DOS-returned switchar.  This, in the end, might prove
  38.     to be a more preferrable solution to this problem than using the DOS
  39.     half-baked switchar.
  40.